class Student:    # 设计类
    name = None
    age = None
    nationality = None
    sex = None
    wife = None
stu_a = Student()  # 创建对象
stu_a.name = "庄子昂"
stu_a.age = 18
stu_a.nationality = "中国"
stu_a.sex = "男"
stu_a.wife = "苏雨蝶"
# 庄生晓梦迷蝴蝶
print(stu_a.name)    # 对象属性赋值
print(stu_a.age)
print(stu_a.nationality)
print(stu_a.sex)
print(stu_a.wife)
